STEP 12: Let's add some more actions to the function! Make sure these are all INSIDE the function!

  • Use Say INSIDE the reward_scene function to have the wizard say "Here is your reward!"
  • Drop the Treasure Chest into the function and rename it treasure.
  • Change the treasure chests coordinates so it doesn't appear over the wizard.
  • Drag Function Call to into your program, OUTSIDE the function. Change the name to reward_scene.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)